from django_filters import rest_framework

from apps.scripts.models import PythonScript


class PythonScriptFilter(rest_framework.FilterSet):
    name = rest_framework.CharFilter(lookup_expr='contains')
    module = rest_framework.BaseInFilter(lookup_expr='in')

    class Meta:
        model = PythonScript
        fields = '__all__'
